import kotlin.math.roundToInt

fun main() {
    val number1:Int? = "8.89".toIntOrNull()
    println(number1)

    println(8.9678.toInt())
    println(8.6790.roundToInt())

    val s = "%.2f".format(8.786567)
    println(s)
}